package www.icomwell.com.viperdemo.Modules.List.ApplicationLogic.Manager;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.experimental.results.PrintableResult;

import java.util.ArrayList;

import www.icomwell.com.viperdemo.Modules.List.ApplicationLogic.Interactor.UpcomingItem;

import static org.junit.Assert.*;

/**
 * Created by leeesven on 17/5/24.
 */
public class ListDataManagerTest {

	private ListDataManager listDataManager;

	@Before
	public void setUp() throws Exception {
		listDataManager = new ListDataManager();
	}

	@After
	public void tearDown() throws Exception {
		listDataManager = null;
	}

	@Test
	public void fetchUpcomingData() throws Exception {
		ArrayList<UpcomingItem> upcomingItems = listDataManager.fetchUpcomingData();
		assertEquals(upcomingItems.size(), 5);
	}

}